package com.wangshaoyu.controller;

import com.wangshaoyu.service.StringSerice;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class TestController {
    @DubboReference
    private StringSerice stringSerice;
    @RequestMapping("/get")
    public String get(){
        return stringSerice.getString();
    }
}
